package com.xyht.sca_s.student_manage_system.modules.inform.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author XYHT
 * @since 2022-12-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_inform")
@ApiModel(value="SmsInform对象", description="通知模块")
public class SmsInform implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "事件主题")
    private String eventTopic;

    @ApiModelProperty(value = "事件类型:  0紧急事件;1:普通事件")
    private String eventType;

    @ApiModelProperty(value = "通知类型:  0:校园通知;1:班级通知;2:部门通知")
    private String notificationType;

    @ApiModelProperty(value = "通知范围：1:组织2:角色3:人员")
    private Integer noticeType;

    @ApiModelProperty(value = "通知范围：组织")
    private String orgId;

    @ApiModelProperty(value = "通知范围：角色")
    private String roleId;

    @ApiModelProperty(value = "通知范围：人员")
    private String personnelId;

    @ApiModelProperty(value = "通知内容")
    private String content;

    @ApiModelProperty(value = "上传文件")
    private String uploadFiles;

    @ApiModelProperty(value = "发布时间")
    private Date startTime;

    @ApiModelProperty(value = "截止时间")
    private Date endTime;

    @ApiModelProperty(value = "发布人")
    private String issuerId;

    @ApiModelProperty(value = "状态:  0: 过期;1有效")
    private String state;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除：0:删除;1:存在")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "是否已读:0:否;1:是")
    private String isRead;

    @ApiModelProperty(value = "是否小程序轮播图  0：否  1：是")
    private Integer isBanner;

    private String banner;

    @ApiModelProperty(value = "封面图")
    private String cover;

    @ApiModelProperty(value = "收藏")
    private Integer collect;

    @ApiModelProperty(value = "点赞")
    private Integer likes;
}
